/**
 * 批量删除
 */
function deleteBatch(basePath) {
    $("#mainForm").attr('action', basePath +"/DeleteBatchServlet");
    $("#mainForm").submit();
}

function gotoPage(currentPage) {
    var totalPage = $('#totalPage').val();
    if(currentPage <= 0 || currentPage > totalPage)
        currentPage = 1;
    $('#currentPage').val(currentPage);
    $("#mainForm").submit();
}